<?php 
session_start();
include "../_init_.php";

$action= isset($_REQUEST["action"])?$_REQUEST["action"]:'';
switch($action)
{
	case 'save':
		Util::setGlobalValue('ABOUT_US_TEXT1',Util::htmlStrBeforSaveDb($_REQUEST['ABOUT_US_TEXT1']));
	break;
}
?>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>網站管理系統</title>


<LINK REL="stylesheet" HREF="css/style.css" TYPE="text/css">
<LINK REL="stylesheet" HREF="css/main.css" TYPE="text/css">
<script src="js/FancyZoom.js" language="JavaScript" type="text/javascript"></script>
<script src="js/FancyZoomHTML.js" language="JavaScript" type="text/javascript"></script>

<script type="text/javascript" src="<?php echo constant('SITE_URL_PATH');?>/lib/ckeditor/ckeditor.js"></script>

<body onLoad="setupZoom();">

<table width="100%" border="0" class="table2">
  <tr>
    <td>公司介紹</td>
  </tr>
</table>
<?php if($error_message):?>
<div class="error_message"><?php echo $error_message;?></div>
<?php endif;?>
<?php if($sucess_message):?>
<div class="success_message"><?php echo $sucess_message;?></div>
<?php endif;?>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top">
      <table align="left">
      	<tr>
      		<td align="left"><iframe src="iframe_upload_file.php" scrolling="no" height="100" style="border:solid 1px #666666;width:800px;"></iframe></td>
      	</tr>
      </table>
     </td>
     </tr>
     <tr>
     <td>
      <table width="100%" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
        <tr> 
          <td  height="20" class="back_southidc"> <div align="center"><strong>公司介紹</strong></div></td>
        </tr>
        <tr  class="tr_southidc">          
            <td bgcolor="#B0DAFF">
              <form method="post">
              <input type="hidden" name="action" value="save"/>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#0000FF">
              <tr>
              		<td>公司介紹:</td>
              		<td><textarea class="ckeditor" cols="100" rows="5" name="ABOUT_US_TEXT1"><?php echo  Util::htmlStrAfterReadfromDb(Util::getGlobalValue('ABOUT_US_TEXT1'));?></textarea></td>
              </tr>
              <tr>
              		<td colspan="2" align="center"><input type="submit" value="確認送出"/></td>
              </tr>
         	 </table>
         	 </form>
           </td>         
        </tr>
      </table>
    </td>
  </tr>
</table>
<?php  include("foot.php");?>